<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="02_HelloWorld_With_Close_Button.aspx.cs" Inherits="_02_HelloWorld_With_Close_Button"
    Title="Hello World Close Button" %>

<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Button ID="Button1" runat="server" Text="Show Time Here" OnClick="Button1_Click" />
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec et purus. Mauris
    hendrerit enim et eros. Morbi ultricies nonummy nunc. Aliquam nec ligula. Cras at
    nulla. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti.
    Vivamus ullamcorper tincidunt sem. Proin ut orci. Donec id nulla. Aliquam sed justo
    sit amet nibh luctus luctus. Donec sagittis, orci at facilisis scelerisque, lorem
    purus consequat risus, sed lobortis velit nibh a nulla. Curabitur pede. Nunc sed
    nunc. Ut a purus. Quisque id velit. Suspendisse vel nisl. Pellentesque justo nulla,
    dictum sit amet, bibendum nec, adipiscing in, dolor. Suspendisse gravida laoreet
    quam. Aenean quam.<br />
    <asp:Button ID="Button2" runat="server" Text="Show Time Here" OnClick="Button2_Click" /><br />
    <!--------------UpdatePanelPopupExtender-------------------------->
    <cc1:UpdatePanelPopupExtender ID="UpdatePanelPopupExtender1" runat="server" TargetControlID="UpdatePanel1"
        OffsetX="0" OffsetY="0" CalloutColor="LightGoldenrodYellow" CalloutType="TransparentGradient" CalloutBorderColor="Olive" />
    <!--------------UpdatePanelPopupExtender-------------------------->
    <div style="display: none">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <contenttemplate>
<DIV style="border: olive 1px solid;padding: 8px;color: black;background-color: lightgoldenrodyellow;"><DIV style="FONT-WEIGHT: bold; FONT-SIZE: 1em">Server Time</DIV><DIV id="divClose" class="closeIcon" runat="server"></DIV><asp:Label id="Label1" runat="server" Text="Label"></asp:Label><BR /><SPAN style="CURSOR: pointer; TEXT-DECORATION: underline" id="spnClose" runat="server">Close Me</SPAN> </DIV>
</contenttemplate>
        </asp:UpdatePanel>
    </div>
    <br />
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <ul>
        <li>Clicking anywhere outside the UpdatePanel region will hide
            the UpdatePanel. </li>
        <li>We have used the static method UpdatePanelPopupExtender.RegisterCloseControl on
            the close icon and "Close Me" text so if you click on them, it will hide the UpdatePanel.</li></ul>
</asp:Content>
